﻿
<nav class="menu-box">
    <div style="height: 100%;overflow: scroll;">
        <ul>
            @*<li><i class="home-icon"></i><a href="#">@Language.Get("首页")</a></li>*@
            @{
            if (Wholesaler.Common.GetOpenMenu.IsShowColunm("white") ==1 ){
            <li class="menu_white white"><i class="diamonds-icon"></i>@Language.Get("货品查找")<i class="more-nav-icon"></i>
                <ol class="more-menu">
                    @{
                    if(Wholesaler.Common.GetOpenMenu.IsDisplay("diamond")==true){
                    <li><a class="external" onclick="toPage('/Team/WhiteDias?team=1')" href="#">@Language.Get("裸钻")</a></li>
                    }
                    if(Wholesaler.Common.GetOpenMenu.IsDisplay("inlaysettings")==true){
                    <li><a class="external" onclick="toPage('/Team/InlaySettings?team=1')" href="#">@Language.Get("空托")</a></li>
                    }
                    if(Wholesaler.Common.GetOpenMenu.IsDisplay("parcel")==true){
                    <li><a class="external" onclick="toPage('/Team/WhiteParcels?team=1')" href="#">@Language.Get("统包")</a></li>
                    }
                    if(Wholesaler.Common.GetOpenMenu.IsDisplay("ring")==true){
                    <li><a class="external" onclick="toPage('/Team/Ring?team=1')" href="#">@Language.Get("成品")</a></li>
                    }
                    if(Wholesaler.Common.GetOpenMenu.IsDisplay("gem")==true){
                    <li><a class="external" onclick="toPage('/Team/Gem?team=1')" href="#">@Language.Get("彩宝")</a></li>
                    }
                    if(Wholesaler.Common.GetOpenMenu.IsDisplay("emerald")==true){
                    <li><a class="external" onclick="toPage('/Team/Emerald?team=1')" href="#">@Language.Get("翡翠")</a></li>
                    }
                    if(Wholesaler.Common.GetOpenMenu.IsDisplay("gold")==true){
                    <li><a class="external" onclick="toPage('/Team/PrimeGold?team=1')" href="#">@Language.Get("素金")</a></li>
                    }

                    }
                </ol>
            </li>
            }
            if (Wholesaler.Common.GetOpenMenu.IsShowColunm("shopcart") ==1 ){
            <li  style="display:@(Wholesaler.Common.GetOpenMenu.IsOpenMenu("headerMenus.cart")==true?"block":"none")" class="menu_shopcart menuCart"><i class="cart-icon"></i>@Language.Get("购物车")<i class="more-nav-icon"></i>
            <ol class="more-menu">
                <li><a href="/Team/Cart?type=1" class="external">@Language.Get("购物车")</a></li><!--href="/Team/DiaCart"-->
            </ol>
            </li>
            }
            if (Wholesaler.Common.GetOpenMenu.IsShowColunm("orders") ==1 ) {
            <li style="display:@(Wholesaler.Common.GetOpenMenu.IsOpenMenu("headerMenus.order")==true?"block":"none")" class="menuOrder"><i class="order-icon"></i>@Language.Get("订单")<i class="more-nav-icon"></i>
            <ol class="more-menu">
                @{
                if(Wholesaler.Common.GetOpenMenu.IsDisplay("diamond")==true){
                <li><a class="external" onclick="toPage('/Team/OrderFilter?type=1')" href="#">@Language.Get("裸钻")</a></li>
                }
                if(Wholesaler.Common.GetOpenMenu.IsDisplay("inlaysettings")==true){
                <li><a class="external" onclick="toPage('/Team/OrderFilter?type=7')" href="#">@Language.Get("空托")</a></li>
                }
                if(Wholesaler.Common.GetOpenMenu.IsDisplay("parcel")==true){
                <li><a class="external" onclick="toPage('/Team/OrderFilter?type=2')" href="#">@Language.Get("统包")</a></li>
                }
                if(Wholesaler.Common.GetOpenMenu.IsDisplay("ring")==true){
                <li><a class="external" onclick="toPage('/Team/OrderFilter?type=3')" href="#">@Language.Get("成品")</a></li>
                }
                if(Wholesaler.Common.GetOpenMenu.IsDisplay("gem")==true){
                <li><a class="external" onclick="toPage('/Team/OrderFilter?type=4')" href="#">@Language.Get("彩宝")</a></li>
                }
                if(Wholesaler.Common.GetOpenMenu.IsDisplay("emerald")==true){
                <li><a class="external" onclick="toPage('/Team/OrderFilter?type=5')" href="#">@Language.Get("翡翠")</a></li>
                }
                if(Wholesaler.Common.GetOpenMenu.IsDisplay("gold")==true){
                <li><a class="external" onclick="toPage('/Team/OrderFilter?type=6')" href="#">@Language.Get("素金")</a></li>
                }

                }
            </ol>
            </li>
            }

            if (Wholesaler.Common.GetOpenMenu.IsShowColunm("mgmtwhite") ==1 ) {
            <li class="menu_mgmtwhite"><i class="diamonds-icon"></i>@Language.Get("库存管理")<i class="more-nav-icon"></i>
                <ol class="more-menu">
                    @{
                    if(Wholesaler.Common.GetOpenMenu.IsDisplay("diamond")==true){
                    <li><a class="external" onclick="toPage('/Team/MyDias?team=2')" href="#">@Language.Get("裸钻")</a></li>
                    }
                    if(Wholesaler.Common.GetOpenMenu.IsDisplay("inlaysettings")==true){
                    <li><a class="external" onclick="toPage('/Team/MyInlaySettings?team=2&type=7')" href="#">@Language.Get("空托")</a></li>
                    }
                    if(Wholesaler.Common.GetOpenMenu.IsDisplay("parcel")==true){
                    <li><a class="external" onclick="toPage('/Team/MyParcel?team=2')" href="#">@Language.Get("统包")</a></li>
                    }
                    if(Wholesaler.Common.GetOpenMenu.IsDisplay("ring")==true){
                    <li><a class="external" onclick="toPage('/Team/MyRing?team=2&type=3')" href="#">@Language.Get("成品")</a></li>
                    }
                    if(Wholesaler.Common.GetOpenMenu.IsDisplay("gem")==true){
                    <li><a class="external" onclick="toPage('/Team/MyGem?team=2')" href="#">@Language.Get("彩宝")</a></li>
                    }
                    if(Wholesaler.Common.GetOpenMenu.IsDisplay("emerald")==true){
                    <li><a class="external" onclick="toPage('/Team/MyEmerald?team=2')" href="#">@Language.Get("翡翠")</a></li>
                    }
                    if(Wholesaler.Common.GetOpenMenu.IsDisplay("gold")==true){
                    <li><a class="external" onclick="toPage('/Team/MyPrimeGold?team=2')" href="#">@Language.Get("素金")</a></li>
                    }

                    }
                </ol>
            </li>
            }


            if (Wholesaler.Common.GetOpenMenu.IsShowColunm("ordering") ==1 ) {
            <li  style="display:@(Wholesaler.Common.GetOpenMenu.IsOpenMenu("headerMenus.ordering")==true?"block":"none")" class="menu_ordering ordering"><i class="dai_order-icon"></i>@Language.Get("代下单")<i class="more-nav-icon"></i>
            <ol class="more-menu">
                <li><a class="external" onclick="toPage('/Team/ordering?team=1')" href="#">@Language.Get("代下单")</a></li>
            </ol>
            </li>
            }
            if (Wholesaler.Common.GetOpenMenu.IsShowColunm("customer") ==1 ) {
            <li class="menu_customer">
                <i class="customer-icon"></i>@Language.Get("客户管理")<i class="more-nav-icon"></i>
                <ol class="more-menu">
                    <li><a class="external" href="/Team/customer">@Language.Get("客户管理")</a></li>
                </ol>
            </li>
            }
            if (Wholesaler.Common.GetOpenMenu.IsShowColunm("supplier") ==1 ) {<!--供应商管理-menu_supplier-->
            <li class="menu_supplier">
                <i class="supplier-icon"></i>@Language.Get("供应商管理")<i class="more-nav-icon"></i>
                <ol class="more-menu">
                    <li><a class="external" href="/Team/supplier?type=1">@Language.Get("供应商管理")</a></li>
                </ol>
            </li>

            }
            if(Wholesaler.Common.CommonPage.GetIsHideSupplier() =="1"){
            if (Wholesaler.Common.GetOpenMenu.IsShowColunm("centersupplier") ==1 ) {<!--屏蔽供应商-menu_FilterSupplier-->
            <li class="menu_FilterSupplier">
                <i class="FilterSupplier-icon"></i>@Language.Get("屏蔽")<i class="more-nav-icon"></i>
                <ol class="more-menu">
                    <li><a class="external" href="/Team/filter?type=1">@Language.Get("屏蔽")</a></li>
                </ol>
            </li>

            }
            }

            if (Wholesaler.Common.GetOpenMenu.IsShowColunm("team") ==1 ) {
            <li class="menu_team">
                <i class="team_order-icon"></i>@Language.Get("团队管理")<i class="more-nav-icon"></i>
                <ol class="more-menu">
                    <li><a class="external" href="/team/team">@Language.Get("团队管理")</a></li>
                </ol>
            </li>
            }
            if (Wholesaler.Common.GetOpenMenu.IsShowColunm("apply") ==1 ){
            <li class="menu_apply"><i class="order-icon"></i>@Language.Get("财务")<i class="more-nav-icon"></i>
                <ol class="more-menu">
                    <li><a class="external" href="/team/apply">@Language.Get("申请")</a></li>
                    <li><a class="external" href="/team/flow">@Language.Get("审核")</a></li>
                    <li><a class="external" href="/team/bank">@Language.Get("账户")</a></li>
                    <li><a class="external" href="/team/pay">@Language.Get("消费")</a></li>
                </ol>
            </li>
            }
            if (Wholesaler.Common.GetOpenMenu.IsShowColunm("aboutme") ==1 ){
            <li class="menu_shopcart"><i class="aboutme-icon"></i>@Language.Get("关于我")<i class="more-nav-icon"></i>
                <ol class="more-menu">
                    <li><a class="external" href="/team/Info">@Language.Get("资料")</a></li>
                    <li><a class="external" href="/team/Pwd">@Language.Get("改密")</a></li>
                </ol>

            </li>
            }
            }
            <li><i class="en-icon"></i><span onclick="changeLanguage()">@Language.Get("English")</span></li>

        </ul>
    </div>
</nav>
<div class="get-top">
    <i></i>
</div>
<script>
    var dict=@Html.Raw(Language.GetDict());//中英文

    var isHideSupplier=@Wholesaler.Common.CommonPage.GetIsHideSupplier();

    function toPage(url) {
        localStorage.removeItem("diaList");  //清空货品查找裸钻
        localStorage.removeItem("weightList");

        localStorage.removeItem("orderList");  //清空订单裸钻

        localStorage.removeItem('ringList') ; //清空成品库存
        localStorage.removeItem('parcelList') ; //清空统包库存

        window.location.href=url;

    }
</script>
